#pragma once

//#pragma comment(lib, "/LIBPATH:../boost_1_49_0/stage/lib/")

#include <boost/asio.hpp>

class TcpIoLoop
{
public:
	TcpIoLoop();
	~TcpIoLoop();

	void Start();
	void Stop();
	boost::asio::io_service& Get();
	
private:
	static uint32_t __stdcall threadCallback(void* pv);
	void Run();

private:
	boost::asio::io_service ioService_;

	volatile bool isRunning;
	std::vector<HANDLE> threadHandles_;
};
